package com.example.rf.dao

import com.example.rf.entity.Post
import org.springframework.data.r2dbc.repository.R2dbcRepository

interface PostDao : R2dbcRepository<Post, Int> {

    //    @Query("SELECT * FROM posts WHERE title like :name")
    suspend fun findByTitleContains(title: String): List<Post>

}